package com.quanyan.ic.vendingMachine.mapper.customSQL;

import com.quanyan.ic.common.paging.Limit;
import com.quanyan.ic.vendingMachine.http.request.ReqSalesRecordCondition;
import com.quanyan.ic.vendingMachine.model.SalesRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * Created by zhuo.shi on 2017/7/25.
 * 售货机报表相关查询，动态SQL接口
 */
@Mapper
public interface VmReportMapper {

    @SelectProvider(type = VmReportMapperSqlProvider.class, method = "querySalesRecordList")
    List<SalesRecord> querySalesRecordList(ReqSalesRecordCondition condition, Limit limit);

    @SelectProvider(type = VmReportMapperSqlProvider.class, method = "countSalesRecordList")
    int countSalesRecordList(ReqSalesRecordCondition condition);
}
